<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>WebSocket Client</title>
</head>
<body>
<script>
    socket = new WebSocket("ws://localhost:9000/hello");
    socket.onopen = function (event) {
        console.log('onopen', event)
        socket.send('WebSocket Client');
    };
    socket.onmessage = function (event) {
        console.log(event)
    }
    socket.onclose = function (event) {
    };
</script>
</body>
</html>